#include "StdAfx.h"
#include "McNetStructInfo.h"

bool operator < (const MsSubNetKey& r, const MsSubNetKey& l)
{
	if(r.connectNetId != l.connectNetId)
		return r.connectNetId < l.connectNetId;
	return r.originalNetId < l.originalNetId;
}
void operator <<= (O_STREAM& os, const MsSubNetKey& t)
{
	os <<= t.connectNetId;
	os <<= t.originalNetId;
}
void operator >>= (I_STREAM& is, MsSubNetKey& t)
{
	is >>= t.connectNetId;
	is >>= t.originalNetId;
}

void operator <<= (O_STREAM& os, const MsSubNetInfo& t)
{
	os <<= t.start_connect;
	os <<= t.net_ap;
	os <<= t.parent_net_id;
}
void operator >>= (I_STREAM& is, MsSubNetInfo& t)
{
	is >>= t.start_connect;
	is >>= t.net_ap;
	is >>= t.parent_net_id;
}
